---
import Page from '../../layouts/BlogPost.astro';
import { getEntry } from 'astro:content';
import { formatDate } from "../../util";
const { slug } = Astro.params;
if (slug === undefined) {
throw new Error('Slug is required');
}
const entry = await getEntry('blog', slug);
if(entry === undefined) {
return Astro.redirect('/404');
}
const { Content } = await entry.render();
---
← All articles